<template>
  <div class="Box">
    <div>============复制===========</div>
    <Copy :copy="'这是复制的内容 '"></Copy><br>
    <div>==========图片放大预览==========</div>
    <!-- 文字显示 -->
    <Picture type="pic-list" name="图片名字.jpg"  url='http://www.ranjun.xyz/img/Bg/15.jpg'></Picture><br>
    <!-- 图片显示 -->
    <Picture type="pic-card"  url='http://www.ranjun.xyz/img/Bg/14.jpg'></Picture>
    <!-- 自定义dialog -->
    <div>==========自定义弹出框=========</div>
    <el-button @click="showDialog=true">弹出框</el-button>
    <div>==============自定义v-loading（自定义事件）=============</div>
    <div :loading-full="true" v-load="loading" class="app-container">
      <div class="loading">
        <el-button class="btn" size="mini" @click="loadingClick">loading</el-button>
        <div class="loading-div"></div>
      </div>
    </div>
    <Dialog
        :show="showDialog"
        @close="beforeClose"
        width="500px">
      <div slot="title">刚定的标题</div>
      <div>
        内容哈
      </div>
      <div slot="foot">
        <el-button @click="showDialog=false">取消</el-button>
        <el-button>确认</el-button>
      </div>
    </Dialog>
  </div>
</template>

<script>
import Dialog from "../../components/dialog";
export default {
  components:{
    Dialog
  },
  data(){
    return{
      showDialog:false,
      loading: false,
    }
  },
  methods:{
    beforeClose(){
      this.showDialog=false
    },
    loadingClick (){
      this.loading = true;
      setTimeout(() => {
        this.loading =  false
      },2000)
    }
  }
}
</script>

<style scoped lang="scss">
.Box{
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.8);
  padding: 6px;
}
</style>